package cn.com.system.controller;

import java.text.SimpleDateFormat;
import java.util.Date;


import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

/*ʹ���Զ���ע�ⷽʽ �������ת������
 �Զ������ڱ༭��
 1,����һ���� ���д���һ��
 
 
*/
public class BaseController {
/*���巽��ָ�����ڸ�ʽת��
 * @InitBinder  
	*/
	@InitBinder
	public void dateChange(WebDataBinder dateBinder){
	dateBinder.registerCustomEditor(Date.class,
			new CustomDateEditor( new SimpleDateFormat("yyyy-MM-dd"),true));
	}
	

	
	
	
}
